//package com.zhouyu.jpademo.entity.oneToOne.bothway;
//
//import javax.persistence.CascadeType;
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//import javax.persistence.JoinColumn;
//import javax.persistence.OneToOne;
//
//import lombok.Getter;
//import lombok.Setter;
//
///**
// * @Description:
// */
//@Entity
//@Setter
//@Getter
//public class HusBandTwo {
//    @Id
//    @GeneratedValue(strategy = GenerationType.AUTO)
//    private Long id;
//
//    @Column
//    private String name;
//
//    @Column
//    private Integer age;
//
//    @OneToOne(cascade = {CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE, CascadeType.REFRESH})
//    @JoinColumn(name = "wife_two_id")
//    private WifeTwo wifeTwo;
//}
